package com.sinodata.bsm.common.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * ResTypeDispConf entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "RES_TYPE_DISP_CONF")
public class ResTypeDispConf implements java.io.Serializable {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 7941754468007706742L;

    // Fields    
    private Long id;
    private Long resId;
    private Long resTypeId;
    private Integer isDisp;
    private String dispName;

    // Constructors

    /** default constructor */
    public ResTypeDispConf() {
    }

    /** minimal constructor */
    public ResTypeDispConf(Long id) {
        this.id = id;
    }

    /** full constructor */
    public ResTypeDispConf(Long id, Long resId, Long resTypeId, Integer isDisp, String dispName) {
        this.id = id;
        this.resId = resId;
        this.resTypeId = resTypeId;
        this.isDisp = isDisp;
        this.dispName = dispName;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequence")
    @SequenceGenerator(name = "sequence", sequenceName = "RES_TYPE_DISP_CONF_SEQ")
    @Column(name = "ID", unique = true, nullable = false, precision = 18, scale = 0)
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "RES_ID", precision = 18, scale = 0)
    public Long getResId() {
        return this.resId;
    }

    public void setResId(Long resId) {
        this.resId = resId;
    }

    @Column(name = "RES_TYPE_ID", precision = 18, scale = 0)
    public Long getResTypeId() {
        return this.resTypeId;
    }

    public void setResTypeId(Long resTypeId) {
        this.resTypeId = resTypeId;
    }

    @Column(name = "IS_DISP", precision = 1, scale = 0)
    public Integer getIsDisp() {
        return this.isDisp;
    }

    public void setIsDisp(Integer isDisp) {
        this.isDisp = isDisp;
    }

    @Column(name = "DISP_NAME", length = 128)
    public String getDispName() {
        return this.dispName;
    }

    public void setDispName(String dispName) {
        this.dispName = dispName;
    }

    @Override
    public String toString() {
        return "ResTypeDispConf [id=" + id + ", resId=" + resId + ", resTypeId=" + resTypeId + ", isDisp=" + isDisp + ", dispName=" + dispName + "]";
    }

}